/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.Question1.employees.Impl;

/**
 *
 * @author 208067396
 */
public class SalaryEmployee extends Employees {
    
    private double salary;

    public SalaryEmployee(int number, String nme, String surn, String job, double gAmount, double sal)
    {
        super(number, nme, surn, job, gAmount);
        salary = sal;
        
    }
    
    @Override
    public double calcTax() {
        
        return salary * 0.10;
    }

    /**
     * @return the salary
     */
    public double getSalary() {
        return salary;
    }

    /**
     * @param salary the salary to set
     */
    public void setSalary(double salary) {
        this.salary = salary;
    }
    
}
